package com.java.server;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Properties;

public class Server {

    static ArrayList<Socket> list = new ArrayList<>();

    public static void main(String[] args) throws IOException {
        ServerSocket ss = new ServerSocket(3000);

        Properties prop = new Properties();
        FileInputStream fis = new FileInputStream("Info/userInfo.txt");
        prop.load(fis);
        fis.close();

        while (true) {
            Socket socket = ss.accept();
            new Thread(new MyRunnable(socket, prop)).start();
        }
    }
}


